﻿.frame-on a{
    color: #333;
    text-decoration: none;
    outline: 0;
    transition: color .1s;
}

fieldset, img, area, a {
    border: 0;
    outline: 0;
}

.tool-bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 35px;
    height: 100%;
    background: #505050;
    z-index: 98;
    transition: width .3s ease;
}

.tool-bar-menu {
    position: absolute;
    top: 50%;
    left: 0;
    height: 250px;
    margin-top: -125px;
}

.tool-bar.frame-on {
    width: 335px;
}

.tool-bar-menu a, .scroll-to-top {
    width: 25px;
    height: 25px;
    display: block;
    padding: 5px;
    position: relative;
}

    .tool-bar-menu a i {
        display: block;
        width: 25px;
        height: 25px;
    }

    .tool-bar-menu a span, .scroll-to-top span {
        display: block;
        visibility: hidden;
        position: absolute;
        top: 0;
        left: -80px;
        width: 70px;
        height: 35px;
        background: #ff4e00;
        color: #fff;
        text-align: center;
        line-height: 35px;
        font-size: 12px;
        transition: left .2s ease;
        -webkit-transition: left .2s ease;
    }

        .tool-bar-menu a span em, .scroll-to-top span em {
            border-top: 5px solid transparent;
            border-left: 5px solid #ff4e00;
            border-bottom: 5px solid transparent;
            position: absolute;
            right: 0;
            right: -5px;
            top: 13px;
        }

    .tool-bar-menu a b {
        position: absolute;
        right: 2px;
        top: 0;
        color: #fff;
        background: #ff4500;
        border-radius: 100%;
        padding: 0 3px;
        height: 14px;
        text-align: center;
        line-height: 14px;
        display: none;
        font-size: 12px;
        font-weight: normal;
    }

.scroll-to-top {
    position: absolute !important;
    bottom: 0;
    left: 0;
    display: block;
}

.tool-bar-menu a:hover {
    background-color: #c80f1e;
}

    .tool-bar-menu a:hover span {
        display: block;
        visibility: visible;
        position: absolute;
        top: 0;
        left: -70px;
        width: 70px;
        height: 35px;
        background: #ff4e00;
        color: #fff;
        text-align: center;
        line-height: 35px;
        font-size: 12px;
        transition: left .2s ease;
        -webkit-transition: left .2s ease;
    }

.frame-on > .scroll-to-top:hover {
    background-color: #c80f1e;
}

    .frame-on > .scroll-to-top:hover span {
        display: block;
        visibility: visible;
        position: absolute;
        top: 0;
        left: -70px;
        width: 70px;
        height: 35px;
        background: #ff4e00;
        color: #fff;
        text-align: center;
        line-height: 35px;
        font-size: 12px;
        transition: left .2s ease;
        -webkit-transition: left .2s ease;
    }

.tool-bar-frame {
    position: absolute;
    width: 300px;
    height: 100%;
    background: #fff;
    left: 35px;
    top: 0;
}
